package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.ScanList;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2023-12-7 8:13:57
 */
@Repository
public interface ScanListMapper {
    int insert(ScanList record);

    int insertSelective(ScanList record);

    int multiInsert(List<ScanList> list);

    int updateByPrimaryKey(ScanList record);

    int updateByPrimaryKeySelective(ScanList record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer id);
    // 根据主键查询
    ScanList selectByPrimaryKey(Integer id);

    List<ScanList> selectAll();

    int save(ScanList record);
    int multiSave(List<ScanList> list);

    //================= 下面是 Example 代码 ==================
    List<ScanList> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") ScanList record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") ScanList record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    ScanList getNext(Integer id);
    ScanList getPrev(Integer id);
    ScanList getFirst();
    ScanList getLast();
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}